import Request from '@/utils/request-util';

/**
 * 相机识别数据api
 *
 * @author cancan
 * @date 2025/06/16 22:15
 */
export class DeviceAiEdgeCameraRecogniseApi {
  static findPage(params) {
    return Request.getAndLoadData('/deviceAiEdgeCameraRecognise/page', params);
  }
  /**
   * 新增
   *
   * @author cancan
   * @date 2025/06/16 22:15
   */
  static add(params) {
    return Request.post('/deviceAiEdgeCameraRecognise/add', params);
  }

  /**
   * 修改
   *
   * @author cancan
   * @date 2025/06/16 22:15
   */
  static edit(params) {
    return Request.post('/deviceAiEdgeCameraRecognise/edit', params);
  }

  /**
   * 删除
   *
   * @author cancan
   * @date 2025/06/16 22:15
   */
  static delete(params) {
    return Request.post('/deviceAiEdgeCameraRecognise/delete', params);
  }

  /**
   * 详情
   *
   * @author cancan
   * @date 2025/06/16 22:15
   */
  static detail(params) {
    return Request.getAndLoadData('/deviceAiEdgeCameraRecognise/detail', params);
  }

  static findLastOne(cameraId) {
    return Request.get('/deviceAiEdgeCameraRecognise/findLastOneByCameraId', {"cameraId" : cameraId});
  }

  static refresh(cameraId) {
    return Request.get('/deviceAiEdgeCameraRecognise/refresh', {"cameraId" : cameraId});
  }
}
